import 'package:flutter/material.dart';

class MySetting extends StatefulWidget {
  // MySetting({Key key}) : super(key: key);

  @override
  _MySettingState createState() {
    return _MySettingState();
  }
}

class _MySettingState extends State<MySetting> {
  @override
  void initState() {
    super.initState();
  }

  @override
  void dispose() {
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return ListView(
      children: [
        Row(
          children: [
            Expanded(
                child: UserAccountsDrawerHeader(
                  accountName: Text(
                    "Gmz",
                    style: TextStyle(color: Colors.black),
                  ),
                  accountEmail: Text(
                    "123456789@qq.com",
                    style: TextStyle(color: Colors.black),
                  ),
                  currentAccountPicture: CircleAvatar(
                    backgroundImage: NetworkImage(
                        "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fww4.sinaimg.cn%2Fmw690%2F006zFMIigy1gwbbrkvstyj30u00tzh22.jpg&refer=http%3A%2F%2Fwww.sina.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1641912242&t=af48fb01324ccd4b8789333b14540342"),
                  ),
                  decoration: BoxDecoration(
                    image: DecorationImage(
                        image: NetworkImage(
                            "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fnimg.ws.126.net%2F%3Furl%3Dhttp%253A%252F%252Fdingyue.ws.126.net%252F2021%252F0507%252F7fb9036dj00qspd1z000kc000fl009fc.jpg%26thumbnail%3D650x2147483647%26quality%3D80%26type%3Djpg&refer=http%3A%2F%2Fnimg.ws.126.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1641911687&t=e53d6ca9bb6c2ba758dd69e7b2cd24ed"),
                        fit: BoxFit.cover),
                  ),
                ))
          ],
        ),

        ListTile(
          title: Text(''),
        ),
        ListTile(
          title: Text('我的资料'),
          onTap: () {
            Navigator.pushNamed(context, '/MyInfo');
          },
          trailing: Icon(Icons.edit),
        ),
        Divider(
          height: 0.0,
          indent: 0.0,
          color: Colors.black26,
        ),
        ListTile(
          title: Text('明细列表'),
        ),
        Divider(
          height: 0.0,
          indent: 0.0,
          color: Colors.black26,
        ),
        ListTile(
          title: Text('我是设置信息'),
        ),
        Divider(
          height: 0.0,
          indent: 0.0,
          color: Colors.black26,
        ),
        ListTile(
          title: Text('清除数据'),
        ),
        Divider(
          height: 0.0,
          indent: 0.0,
          color: Colors.black26,
        ),
        ListTile(
          title: Text('退出登录'),
        ),
        Divider(
          height: 0.0,
          indent: 0.0,
          color: Colors.black26,
        ),
      ],
    );
  }
}
